import request from "@/utils/request";

// 查询列表
export function listDrivecircuit(query) {
  return request({
    url: "/system/drivecircuit/list",
    method: "get",
    params: query,
  });
}

// 查询详细
export function getDrivecircuit(id) {
  return request({
    url: "/system/drivecircuit/" + id,
    method: "get",
  });
}

// 新增
export function addDrivecircuit(data) {
  return request({
    url: "/system/drivecircuit",
    method: "post",
    data: data,
  });
}

// 修改
export function updateDrivecircuit(data) {
  return request({
    url: "/system/drivecircuit",
    method: "put",
    data: data,
  });
}

// 删除
export function delDrivecircuit(id) {
  return request({
    url: "/system/drivecircuit/" + id,
    method: "delete",
  });
}
